#ifndef COMMON_H
#define COMMON_H
#include <arpa/inet.h>

#define MAX_BUF_LEN 1500

extern struct sockaddr_in create_sockaddr(in_addr_t ip,u_int16_t port);

extern int send_data(int connection,const char* data,int length);

extern int recv_data(int connection,char* data,int length);

#endif